using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Pavilion;

namespace Pavilion.Control
{
    public class Panel : Control
    {
        public Panel() : base() { }

        public Panel(Rectangle bounds) : base()
        {
            AreaBounds = bounds;
        }
        
        public override void Draw()
        {
            if (!Visible)
                return;

            DrawManager.Instance.FillRectangleOnScreen(ScreenBounds, BackgroundColor);
            DrawManager.Instance.DrawRectangleOnScreen(ScreenBounds, OutlineColor);

            base.Draw();
        }

        /// <summary>
        /// Gets the Collection Component of this control that allows for adding and removing of controls.
        /// </summary>
        public NotifiableCollection<Control> Collection
        {
            get { return _Collection; }
        }
    }
}
